home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
LANG
/
C
/
LIB
/
DESK
/
CORE
/
Desk
/
h_doc
/
Validation
< prev
next >
Wrap
Text File
|
1996-05-21
|
2KB
|
52 lines
/*
#### # # # #
# # # # # The FreeWare C library for
# # ## ### # # # # ### RISC OS machines
# # # # # # # # # # # ___________________________________
# # #### ### ## # # # #
# # # # # # # # # # Please refer to the accompanying
#### ### #### # # ##### # ### documentation for conditions of use
________________________________________________________________________
File: Validation.h
Author: Copyright © 1992 Jason Williams
Version: 1.00 (22 Mar 1992)
Purpose: Scanning of validation strings for various fields
*/
#ifndef __Desk_Validation_h
#define __Desk_Validation_h
#ifdef __cplusplus
extern "C" {
#endif
extern int Desk_Validation_ScanString(const char *string, char tag);
/*
* Scan the passed-in string for the special tag character, and return the
* index of the next char. e.g. scanning "a0-9;b3" for the bordertype can be
* done as follows:
*
* if (border = Desk_Icon_ScanValidString(icon.data.indirecttext.validstring, 'B'))
* {
* border = icon.data.indirecttext.validstring[border] - '0';
* switch (border)
* ...
*
* If the tag is not found, a value of 0 will be returned, else the value
* is the index of the character FOLLOWING the tag in the string.
* (NOTE that the tag must be either the first character, or must directly
* follow a semicolon)
*
*/
#ifdef __cplusplus
}
#endif
#endif